-- GENERATED SPELL FOR [Mire Hydra] --


function spell0_18213(pUnit, Event) --@Poison Spit,n/a--
pUnit:FullCastSpellOnTarget(39419,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18213', 12500, 1)
end

function Sorts_18213(pUnit, Event)
local choix_sorts_18213 = math.random(0, 0)
if choix_sorts_18213 == 0 then
pUnit:RegisterEvent('spell0_18213', 1, 1)
end
end

function mob18213_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18213', math.random(1500, 3000), 1)
end

function mob18213_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18213_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18213_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18213, 1, 'mob18213_Action')
RegisterUnitEvent(18213, 2, 'mob18213_Leave')
RegisterUnitEvent(18213, 3, 'mob18213_Kill')
RegisterUnitEvent(18213, 4, 'mob18213_Die')
